﻿using Activity.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Activity.Comm
{
    public static class TestHelper
    {        /// <summary>
             /// 测试数据
             /// </summary>
       public static List<HD_V_PosList> testpos = new List<HD_V_PosList>();

        public static void InitTestData()
        {
            for (int i = 1; i <= 10; i++)
            {
                var test = new HD_V_PosList
                {
                    billdate = DateTime.Now.AddDays(-1),
                    billno = "OS161112KM8888-" + i,
                    ID = Guid.NewGuid(),
                    openid = "oiz3MvnULvCZCbPluptokW1t243A"
                };
                testpos.Add(test);
            }
            for (int i = 11; i <= 20; i++)
            {
                var test = new HD_V_PosList
                {
                    billdate = DateTime.Now.AddDays(-1),
                    billno = "OS161112KM7777-" + i,
                    ID = Guid.NewGuid(),
                    openid = "oiz3Mvh6_tUadACEs7BJdgf8cc1Q"
                };
                testpos.Add(test);
            }

            for (int i = 21; i <= 30; i++)
            {
                var test = new HD_V_PosList
                {
                    billdate = DateTime.Now.AddDays(-1),
                    billno = "OS161112KM6666-" + i,
                    ID = Guid.NewGuid(),
                    openid = "oiz3MvpHMVvwwMnbIMU_jzZKTjoU"
                };
                testpos.Add(test);
            }

            for (int i = 21; i <= 30; i++)
            {
                var test = new HD_V_PosList
                {
                    billdate = DateTime.Now.AddDays(-1),
                    billno = "OS161112KM5555-" + i,
                    ID = Guid.NewGuid(),
                    openid = "oiz3Mvg1CZhkfWTE7C5iP6l9wGh4"
                };
                testpos.Add(test);
            }
        }
    }
}
